﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.Manager
{
    public class new_ExportData
    {
        private readonly DataAccess.new_ExportData _new_exportData;

        public new_ExportData()
        {
            _new_exportData = new DataAccess.new_ExportData();
        }


        /// <summary>
        /// 准备导出前的数据
        /// </summary>
        public void new_PrepareData(string tc_owr009)
        {
            _new_exportData.new_PrepareData(tc_owr009);
        }

        public void new_EndUpdData(string tc_owr009,string filename)
        {
            _new_exportData.new_EndUpdData(tc_owr009, filename);
        }

        /// <summary>
        /// 1.单据传输资料主档
        /// </summary>
        /// <param name="tc_owr009">物流公司代码</param>
        /// <param name="tc_owr002">单据编号</param>
        /// <param name="tc_owr006">单据日期</param>
        /// <returns></returns>

        public List<Model.new_OwrModel> new_PrepareOwrData(string tc_owr009, string tc_owr002, string tc_owr006, string tc_owr007)
        {
            return _new_exportData.new_PrepareOwrData(tc_owr009, tc_owr002, tc_owr006,tc_owr007);
        }

        /// <summary>
        /// 保存单据传输资料主档结果
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool new_SaveOwrData(Model.TC_OWF_FILE model)
        {
            return _new_exportData.new_SaveOwrData(model);
        }

        /// <summary>
        /// 2.单据传输资料折扣档
        /// </summary>
        /// <returns></returns>
        public List<Model.OwwModel> new_PrepareOwwData(string tc_owf001)
        {
            return _new_exportData.new_PrepareOwwData(tc_owf001);
        }
        /// <summary>
        /// 3.单据传输资料明细档
        /// </summary>
        /// <returns></returns>
        public List<Model.OwsModel> new_PrepareOwsData(string tc_owf001)
        {
            return _new_exportData.new_PrepareOwsData(tc_owf001);
        }

        /// <summary>
        /// 4.单据传输资料明细档
        /// </summary>
        /// <returns></returns>
        public List<Model.ImaModel> new_PrepareImaData(string tc_owf001)
        {
            return _new_exportData.new_PrepareImaData(tc_owf001);
        }

        /// <summary>
        /// 5.客户基本资料档
        /// </summary>
        /// <returns></returns>
        public List<Model.OccModel> new_PrepareOccData(string tc_owf001)
        {
            return _new_exportData.new_PrepareOccData(tc_owf001);
        }

        /// <summary>
        /// 6.客户基本资料档
        /// </summary>
        /// <returns></returns>
        public List<Model.Occ_addModel> new_PrepareOcc_addData(string tc_owf001)
        {
            return _new_exportData.new_PrepareOcc_addData(tc_owf001);
        }

        }
}
